package com.example.zuoye.service.impl;

import com.example.zuoye.dao.PublishedGoodDAO;
import com.example.zuoye.entity.Good;
import com.example.zuoye.service.PublishedGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PublishedGoodServiceImpl implements PublishedGoodService {

    @Autowired
    PublishedGoodDAO publishedGoodDAO;

    @Override
    public List<Good> getListPublishedGood(String userId) {
        return publishedGoodDAO.getListPublishedGood(userId);
    }
}
